/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mx.generarHorario.itschapala.vista;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author RaygozaL
 */
@ManagedBean
@SessionScoped
public class accessBean {
private String name;
    private String pass;  
    /**
     * Creates a new instance of accessBean
     */
    public accessBean() {
    }
        
   public void setName(String name) {
        System.out.println("entro al set");
        this.name = name;
    }
    

    public String getName() {
        System.out.println("entro al get");
        return name;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }
    
    //---------------------acciones----------
    
    public String validarLogin(){
    if(name.equals("root")&&pass.equals(("12345"))){
    return  "menunPrincipal";
    }else{
        return "verificarLogin";
    }
    }    
        
        
}


